package com.sl.au.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.sl.au.entity.ExdeBeforeContractDetailParts;
/***
 * 
 * @author chuck
 * 20170224 合同签订前审批合同合同标的物子表的子表DAO
 */


public interface ExdeBeforeContractDetailPartsRepository extends JpaRepository<ExdeBeforeContractDetailParts, String>{
	
	@Transactional
	@Modifying
	@Query("delete from ExdeBeforeContractDetailParts c where c.bContractDetailId=?")
	void deleteByMainId(String ids);
	
	@Transactional
	@Modifying
	@Query("delete from ExdeBeforeContractDetailParts c where c.id=?")
	void deleteById(String ids);
}
